<nav class="navbar navbar-default">
    <div class="container-fluid">
        <div class="navbar-minimize">
            <button id="minimizeSidebar" class="btn btn-round btn-white btn-fill btn-just-icon">
                <i class="ti-arrow-left"></i>
            </button>
        </div>
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <p class="navbar-brand"> {{ title }} </p>
        </div>
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="ti-bell"></i>
                        {% if messages_num > 0 %}
                            <span class="notification">{{ messages_num }}</span>
                        {% else %}
                        {% endif %}
                        <p class="hidden-lg hidden-md">
                            消息
                            <b class="caret"></b>
                        </p>
                    </a>
                    <ul class="dropdown-menu">
                        {% for message in head_messages %}
                            <li>
                                <a href="{% url 'stocksys:user_message_content' id=message.id %}">{{ message.title }}</a>
                            </li>
                        {% endfor %}
                    </ul>
                </li>
                <li>
                    <a href="{% url 'stocksys:mystock' %}">
                        <i class="ti-layout-grid3-alt"></i>
                        <p class="hidden-lg hidden-md">自选股</p>
                    </a>
                </li>
                <li>
                    <a href="{% url 'stocksys:user_bonds' %}">
                        <i class="ti-layout-grid2-alt"></i>
                        <p class="hidden-lg hidden-md">持仓</p>
                    </a>
                </li>
            <li>
                    <a href="{% url 'stocksys:user_order' %}">
                        <i class="ti-agenda"></i>
                        <p class="hidden-lg hidden-md">订单</p>
                    </a>
                </li>
                <li>
                    <a href="{% url 'stocksys:stocksys_profile' %}">
                        <i class="ti-user"></i>
                        <p class="hidden-lg hidden-md">用户信息</p>
                    </a>
                </li>
                <li>
                    <a href="{% url 'stocksys:user_settings' %}">
                        <i class="ti-settings"></i>
                        <p class="hidden-lg hidden-md">系统设置</p>
                    </a>
                </li>
                <li class="separator hidden-lg hidden-md"></li>
            </ul>
        </div>
    </div>
</nav>